import {
	API_HOST,
	API_PROXY
} from "../config.js"

/**
 * 组装接口url，如果是http 直接返回，否则，需要重新拼接url
 */
export const packApiUrl = (url = '') => {
	if (url.slice(0, 4) === 'http') return url
	else return `${API_HOST}${API_PROXY}${url}`
}